package cn.cqie.attendance.student.domian;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: xiehaodong
 * @Date: 2021/7/13 - 8:46
 * @Description: cn.cqie.attendance.student.domian
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultHomework implements Serializable {
    @ApiModelProperty(value = "作业id")
    private Long homId;
    @ApiModelProperty(value = "发布作业id")
    private Long phId;
    @ApiModelProperty(value = "作业发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    @ApiModelProperty(value = "课程名称")
    private String courseName;
    @ApiModelProperty(value = "作业主题")
    private String homeworkTheme;
    @ApiModelProperty(value = "作业类型")
    private int homeworkType;
    @ApiModelProperty(value = "实训课程")
    private String trainteacherName;
    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "作业状态")
    private int status;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;
    @ApiModelProperty(value = "得分")
    private float score;

    private String workContent;
    private String address;
}
